package com.softeem.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class ResourceExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ResourceExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andRIdIsNull() {
            addCriterion("r_id is null");
            return (Criteria) this;
        }

        public Criteria andRIdIsNotNull() {
            addCriterion("r_id is not null");
            return (Criteria) this;
        }

        public Criteria andRIdEqualTo(Integer value) {
            addCriterion("r_id =", value, "rId");
            return (Criteria) this;
        }

        public Criteria andRIdNotEqualTo(Integer value) {
            addCriterion("r_id <>", value, "rId");
            return (Criteria) this;
        }

        public Criteria andRIdGreaterThan(Integer value) {
            addCriterion("r_id >", value, "rId");
            return (Criteria) this;
        }

        public Criteria andRIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("r_id >=", value, "rId");
            return (Criteria) this;
        }

        public Criteria andRIdLessThan(Integer value) {
            addCriterion("r_id <", value, "rId");
            return (Criteria) this;
        }

        public Criteria andRIdLessThanOrEqualTo(Integer value) {
            addCriterion("r_id <=", value, "rId");
            return (Criteria) this;
        }

        public Criteria andRIdIn(List<Integer> values) {
            addCriterion("r_id in", values, "rId");
            return (Criteria) this;
        }

        public Criteria andRIdNotIn(List<Integer> values) {
            addCriterion("r_id not in", values, "rId");
            return (Criteria) this;
        }

        public Criteria andRIdBetween(Integer value1, Integer value2) {
            addCriterion("r_id between", value1, value2, "rId");
            return (Criteria) this;
        }

        public Criteria andRIdNotBetween(Integer value1, Integer value2) {
            addCriterion("r_id not between", value1, value2, "rId");
            return (Criteria) this;
        }

        public Criteria andRNameIsNull() {
            addCriterion("r_name is null");
            return (Criteria) this;
        }

        public Criteria andRNameIsNotNull() {
            addCriterion("r_name is not null");
            return (Criteria) this;
        }

        public Criteria andRNameEqualTo(String value) {
            addCriterion("r_name =", value, "rName");
            return (Criteria) this;
        }

        public Criteria andRNameNotEqualTo(String value) {
            addCriterion("r_name <>", value, "rName");
            return (Criteria) this;
        }

        public Criteria andRNameGreaterThan(String value) {
            addCriterion("r_name >", value, "rName");
            return (Criteria) this;
        }

        public Criteria andRNameGreaterThanOrEqualTo(String value) {
            addCriterion("r_name >=", value, "rName");
            return (Criteria) this;
        }

        public Criteria andRNameLessThan(String value) {
            addCriterion("r_name <", value, "rName");
            return (Criteria) this;
        }

        public Criteria andRNameLessThanOrEqualTo(String value) {
            addCriterion("r_name <=", value, "rName");
            return (Criteria) this;
        }

        public Criteria andRNameLike(String value) {
            addCriterion("r_name like", value, "rName");
            return (Criteria) this;
        }

        public Criteria andRNameNotLike(String value) {
            addCriterion("r_name not like", value, "rName");
            return (Criteria) this;
        }

        public Criteria andRNameIn(List<String> values) {
            addCriterion("r_name in", values, "rName");
            return (Criteria) this;
        }

        public Criteria andRNameNotIn(List<String> values) {
            addCriterion("r_name not in", values, "rName");
            return (Criteria) this;
        }

        public Criteria andRNameBetween(String value1, String value2) {
            addCriterion("r_name between", value1, value2, "rName");
            return (Criteria) this;
        }

        public Criteria andRNameNotBetween(String value1, String value2) {
            addCriterion("r_name not between", value1, value2, "rName");
            return (Criteria) this;
        }

        public Criteria andRUrlIsNull() {
            addCriterion("r_url is null");
            return (Criteria) this;
        }

        public Criteria andRUrlIsNotNull() {
            addCriterion("r_url is not null");
            return (Criteria) this;
        }

        public Criteria andRUrlEqualTo(String value) {
            addCriterion("r_url =", value, "rUrl");
            return (Criteria) this;
        }

        public Criteria andRUrlNotEqualTo(String value) {
            addCriterion("r_url <>", value, "rUrl");
            return (Criteria) this;
        }

        public Criteria andRUrlGreaterThan(String value) {
            addCriterion("r_url >", value, "rUrl");
            return (Criteria) this;
        }

        public Criteria andRUrlGreaterThanOrEqualTo(String value) {
            addCriterion("r_url >=", value, "rUrl");
            return (Criteria) this;
        }

        public Criteria andRUrlLessThan(String value) {
            addCriterion("r_url <", value, "rUrl");
            return (Criteria) this;
        }

        public Criteria andRUrlLessThanOrEqualTo(String value) {
            addCriterion("r_url <=", value, "rUrl");
            return (Criteria) this;
        }

        public Criteria andRUrlLike(String value) {
            addCriterion("r_url like", value, "rUrl");
            return (Criteria) this;
        }

        public Criteria andRUrlNotLike(String value) {
            addCriterion("r_url not like", value, "rUrl");
            return (Criteria) this;
        }

        public Criteria andRUrlIn(List<String> values) {
            addCriterion("r_url in", values, "rUrl");
            return (Criteria) this;
        }

        public Criteria andRUrlNotIn(List<String> values) {
            addCriterion("r_url not in", values, "rUrl");
            return (Criteria) this;
        }

        public Criteria andRUrlBetween(String value1, String value2) {
            addCriterion("r_url between", value1, value2, "rUrl");
            return (Criteria) this;
        }

        public Criteria andRUrlNotBetween(String value1, String value2) {
            addCriterion("r_url not between", value1, value2, "rUrl");
            return (Criteria) this;
        }

        public Criteria andRIntroduceIsNull() {
            addCriterion("r_introduce is null");
            return (Criteria) this;
        }

        public Criteria andRIntroduceIsNotNull() {
            addCriterion("r_introduce is not null");
            return (Criteria) this;
        }

        public Criteria andRIntroduceEqualTo(String value) {
            addCriterion("r_introduce =", value, "rIntroduce");
            return (Criteria) this;
        }

        public Criteria andRIntroduceNotEqualTo(String value) {
            addCriterion("r_introduce <>", value, "rIntroduce");
            return (Criteria) this;
        }

        public Criteria andRIntroduceGreaterThan(String value) {
            addCriterion("r_introduce >", value, "rIntroduce");
            return (Criteria) this;
        }

        public Criteria andRIntroduceGreaterThanOrEqualTo(String value) {
            addCriterion("r_introduce >=", value, "rIntroduce");
            return (Criteria) this;
        }

        public Criteria andRIntroduceLessThan(String value) {
            addCriterion("r_introduce <", value, "rIntroduce");
            return (Criteria) this;
        }

        public Criteria andRIntroduceLessThanOrEqualTo(String value) {
            addCriterion("r_introduce <=", value, "rIntroduce");
            return (Criteria) this;
        }

        public Criteria andRIntroduceLike(String value) {
            addCriterion("r_introduce like", value, "rIntroduce");
            return (Criteria) this;
        }

        public Criteria andRIntroduceNotLike(String value) {
            addCriterion("r_introduce not like", value, "rIntroduce");
            return (Criteria) this;
        }

        public Criteria andRIntroduceIn(List<String> values) {
            addCriterion("r_introduce in", values, "rIntroduce");
            return (Criteria) this;
        }

        public Criteria andRIntroduceNotIn(List<String> values) {
            addCriterion("r_introduce not in", values, "rIntroduce");
            return (Criteria) this;
        }

        public Criteria andRIntroduceBetween(String value1, String value2) {
            addCriterion("r_introduce between", value1, value2, "rIntroduce");
            return (Criteria) this;
        }

        public Criteria andRIntroduceNotBetween(String value1, String value2) {
            addCriterion("r_introduce not between", value1, value2, "rIntroduce");
            return (Criteria) this;
        }

        public Criteria andRSizeIsNull() {
            addCriterion("r_size is null");
            return (Criteria) this;
        }

        public Criteria andRSizeIsNotNull() {
            addCriterion("r_size is not null");
            return (Criteria) this;
        }

        public Criteria andRSizeEqualTo(Double value) {
            addCriterion("r_size =", value, "rSize");
            return (Criteria) this;
        }

        public Criteria andRSizeNotEqualTo(Double value) {
            addCriterion("r_size <>", value, "rSize");
            return (Criteria) this;
        }

        public Criteria andRSizeGreaterThan(Double value) {
            addCriterion("r_size >", value, "rSize");
            return (Criteria) this;
        }

        public Criteria andRSizeGreaterThanOrEqualTo(Double value) {
            addCriterion("r_size >=", value, "rSize");
            return (Criteria) this;
        }

        public Criteria andRSizeLessThan(Double value) {
            addCriterion("r_size <", value, "rSize");
            return (Criteria) this;
        }

        public Criteria andRSizeLessThanOrEqualTo(Double value) {
            addCriterion("r_size <=", value, "rSize");
            return (Criteria) this;
        }

        public Criteria andRSizeIn(List<Double> values) {
            addCriterion("r_size in", values, "rSize");
            return (Criteria) this;
        }

        public Criteria andRSizeNotIn(List<Double> values) {
            addCriterion("r_size not in", values, "rSize");
            return (Criteria) this;
        }

        public Criteria andRSizeBetween(Double value1, Double value2) {
            addCriterion("r_size between", value1, value2, "rSize");
            return (Criteria) this;
        }

        public Criteria andRSizeNotBetween(Double value1, Double value2) {
            addCriterion("r_size not between", value1, value2, "rSize");
            return (Criteria) this;
        }

        public Criteria andRUpTimeIsNull() {
            addCriterion("r_up_time is null");
            return (Criteria) this;
        }

        public Criteria andRUpTimeIsNotNull() {
            addCriterion("r_up_time is not null");
            return (Criteria) this;
        }

        public Criteria andRUpTimeEqualTo(Date value) {
            addCriterionForJDBCDate("r_up_time =", value, "rUpTime");
            return (Criteria) this;
        }

        public Criteria andRUpTimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("r_up_time <>", value, "rUpTime");
            return (Criteria) this;
        }

        public Criteria andRUpTimeGreaterThan(Date value) {
            addCriterionForJDBCDate("r_up_time >", value, "rUpTime");
            return (Criteria) this;
        }

        public Criteria andRUpTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("r_up_time >=", value, "rUpTime");
            return (Criteria) this;
        }

        public Criteria andRUpTimeLessThan(Date value) {
            addCriterionForJDBCDate("r_up_time <", value, "rUpTime");
            return (Criteria) this;
        }

        public Criteria andRUpTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("r_up_time <=", value, "rUpTime");
            return (Criteria) this;
        }

        public Criteria andRUpTimeIn(List<Date> values) {
            addCriterionForJDBCDate("r_up_time in", values, "rUpTime");
            return (Criteria) this;
        }

        public Criteria andRUpTimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("r_up_time not in", values, "rUpTime");
            return (Criteria) this;
        }

        public Criteria andRUpTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("r_up_time between", value1, value2, "rUpTime");
            return (Criteria) this;
        }

        public Criteria andRUpTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("r_up_time not between", value1, value2, "rUpTime");
            return (Criteria) this;
        }

        public Criteria andRIntegralIsNull() {
            addCriterion("r_integral is null");
            return (Criteria) this;
        }

        public Criteria andRIntegralIsNotNull() {
            addCriterion("r_integral is not null");
            return (Criteria) this;
        }

        public Criteria andRIntegralEqualTo(Double value) {
            addCriterion("r_integral =", value, "rIntegral");
            return (Criteria) this;
        }

        public Criteria andRIntegralNotEqualTo(Double value) {
            addCriterion("r_integral <>", value, "rIntegral");
            return (Criteria) this;
        }

        public Criteria andRIntegralGreaterThan(Double value) {
            addCriterion("r_integral >", value, "rIntegral");
            return (Criteria) this;
        }

        public Criteria andRIntegralGreaterThanOrEqualTo(Double value) {
            addCriterion("r_integral >=", value, "rIntegral");
            return (Criteria) this;
        }

        public Criteria andRIntegralLessThan(Double value) {
            addCriterion("r_integral <", value, "rIntegral");
            return (Criteria) this;
        }

        public Criteria andRIntegralLessThanOrEqualTo(Double value) {
            addCriterion("r_integral <=", value, "rIntegral");
            return (Criteria) this;
        }

        public Criteria andRIntegralIn(List<Double> values) {
            addCriterion("r_integral in", values, "rIntegral");
            return (Criteria) this;
        }

        public Criteria andRIntegralNotIn(List<Double> values) {
            addCriterion("r_integral not in", values, "rIntegral");
            return (Criteria) this;
        }

        public Criteria andRIntegralBetween(Double value1, Double value2) {
            addCriterion("r_integral between", value1, value2, "rIntegral");
            return (Criteria) this;
        }

        public Criteria andRIntegralNotBetween(Double value1, Double value2) {
            addCriterion("r_integral not between", value1, value2, "rIntegral");
            return (Criteria) this;
        }

        public Criteria andRDownloadsIsNull() {
            addCriterion("r_downloads is null");
            return (Criteria) this;
        }

        public Criteria andRDownloadsIsNotNull() {
            addCriterion("r_downloads is not null");
            return (Criteria) this;
        }

        public Criteria andRDownloadsEqualTo(Integer value) {
            addCriterion("r_downloads =", value, "rDownloads");
            return (Criteria) this;
        }

        public Criteria andRDownloadsNotEqualTo(Integer value) {
            addCriterion("r_downloads <>", value, "rDownloads");
            return (Criteria) this;
        }

        public Criteria andRDownloadsGreaterThan(Integer value) {
            addCriterion("r_downloads >", value, "rDownloads");
            return (Criteria) this;
        }

        public Criteria andRDownloadsGreaterThanOrEqualTo(Integer value) {
            addCriterion("r_downloads >=", value, "rDownloads");
            return (Criteria) this;
        }

        public Criteria andRDownloadsLessThan(Integer value) {
            addCriterion("r_downloads <", value, "rDownloads");
            return (Criteria) this;
        }

        public Criteria andRDownloadsLessThanOrEqualTo(Integer value) {
            addCriterion("r_downloads <=", value, "rDownloads");
            return (Criteria) this;
        }

        public Criteria andRDownloadsIn(List<Integer> values) {
            addCriterion("r_downloads in", values, "rDownloads");
            return (Criteria) this;
        }

        public Criteria andRDownloadsNotIn(List<Integer> values) {
            addCriterion("r_downloads not in", values, "rDownloads");
            return (Criteria) this;
        }

        public Criteria andRDownloadsBetween(Integer value1, Integer value2) {
            addCriterion("r_downloads between", value1, value2, "rDownloads");
            return (Criteria) this;
        }

        public Criteria andRDownloadsNotBetween(Integer value1, Integer value2) {
            addCriterion("r_downloads not between", value1, value2, "rDownloads");
            return (Criteria) this;
        }

        public Criteria andRGradeIsNull() {
            addCriterion("r_grade is null");
            return (Criteria) this;
        }

        public Criteria andRGradeIsNotNull() {
            addCriterion("r_grade is not null");
            return (Criteria) this;
        }

        public Criteria andRGradeEqualTo(Double value) {
            addCriterion("r_grade =", value, "rGrade");
            return (Criteria) this;
        }

        public Criteria andRGradeNotEqualTo(Double value) {
            addCriterion("r_grade <>", value, "rGrade");
            return (Criteria) this;
        }

        public Criteria andRGradeGreaterThan(Double value) {
            addCriterion("r_grade >", value, "rGrade");
            return (Criteria) this;
        }

        public Criteria andRGradeGreaterThanOrEqualTo(Double value) {
            addCriterion("r_grade >=", value, "rGrade");
            return (Criteria) this;
        }

        public Criteria andRGradeLessThan(Double value) {
            addCriterion("r_grade <", value, "rGrade");
            return (Criteria) this;
        }

        public Criteria andRGradeLessThanOrEqualTo(Double value) {
            addCriterion("r_grade <=", value, "rGrade");
            return (Criteria) this;
        }

        public Criteria andRGradeIn(List<Double> values) {
            addCriterion("r_grade in", values, "rGrade");
            return (Criteria) this;
        }

        public Criteria andRGradeNotIn(List<Double> values) {
            addCriterion("r_grade not in", values, "rGrade");
            return (Criteria) this;
        }

        public Criteria andRGradeBetween(Double value1, Double value2) {
            addCriterion("r_grade between", value1, value2, "rGrade");
            return (Criteria) this;
        }

        public Criteria andRGradeNotBetween(Double value1, Double value2) {
            addCriterion("r_grade not between", value1, value2, "rGrade");
            return (Criteria) this;
        }

        public Criteria andRCheckIsNull() {
            addCriterion("r_check is null");
            return (Criteria) this;
        }

        public Criteria andRCheckIsNotNull() {
            addCriterion("r_check is not null");
            return (Criteria) this;
        }

        public Criteria andRCheckEqualTo(String value) {
            addCriterion("r_check =", value, "rCheck");
            return (Criteria) this;
        }

        public Criteria andRCheckNotEqualTo(String value) {
            addCriterion("r_check <>", value, "rCheck");
            return (Criteria) this;
        }

        public Criteria andRCheckGreaterThan(String value) {
            addCriterion("r_check >", value, "rCheck");
            return (Criteria) this;
        }

        public Criteria andRCheckGreaterThanOrEqualTo(String value) {
            addCriterion("r_check >=", value, "rCheck");
            return (Criteria) this;
        }

        public Criteria andRCheckLessThan(String value) {
            addCriterion("r_check <", value, "rCheck");
            return (Criteria) this;
        }

        public Criteria andRCheckLessThanOrEqualTo(String value) {
            addCriterion("r_check <=", value, "rCheck");
            return (Criteria) this;
        }

        public Criteria andRCheckLike(String value) {
            addCriterion("r_check like", value, "rCheck");
            return (Criteria) this;
        }

        public Criteria andRCheckNotLike(String value) {
            addCriterion("r_check not like", value, "rCheck");
            return (Criteria) this;
        }

        public Criteria andRCheckIn(List<String> values) {
            addCriterion("r_check in", values, "rCheck");
            return (Criteria) this;
        }

        public Criteria andRCheckNotIn(List<String> values) {
            addCriterion("r_check not in", values, "rCheck");
            return (Criteria) this;
        }

        public Criteria andRCheckBetween(String value1, String value2) {
            addCriterion("r_check between", value1, value2, "rCheck");
            return (Criteria) this;
        }

        public Criteria andRCheckNotBetween(String value1, String value2) {
            addCriterion("r_check not between", value1, value2, "rCheck");
            return (Criteria) this;
        }

        public Criteria andTypeIdIsNull() {
            addCriterion("type_id is null");
            return (Criteria) this;
        }

        public Criteria andTypeIdIsNotNull() {
            addCriterion("type_id is not null");
            return (Criteria) this;
        }

        public Criteria andTypeIdEqualTo(Integer value) {
            addCriterion("type_id =", value, "typeId");
            return (Criteria) this;
        }

        public Criteria andTypeIdNotEqualTo(Integer value) {
            addCriterion("type_id <>", value, "typeId");
            return (Criteria) this;
        }

        public Criteria andTypeIdGreaterThan(Integer value) {
            addCriterion("type_id >", value, "typeId");
            return (Criteria) this;
        }

        public Criteria andTypeIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("type_id >=", value, "typeId");
            return (Criteria) this;
        }

        public Criteria andTypeIdLessThan(Integer value) {
            addCriterion("type_id <", value, "typeId");
            return (Criteria) this;
        }

        public Criteria andTypeIdLessThanOrEqualTo(Integer value) {
            addCriterion("type_id <=", value, "typeId");
            return (Criteria) this;
        }

        public Criteria andTypeIdIn(List<Integer> values) {
            addCriterion("type_id in", values, "typeId");
            return (Criteria) this;
        }

        public Criteria andTypeIdNotIn(List<Integer> values) {
            addCriterion("type_id not in", values, "typeId");
            return (Criteria) this;
        }

        public Criteria andTypeIdBetween(Integer value1, Integer value2) {
            addCriterion("type_id between", value1, value2, "typeId");
            return (Criteria) this;
        }

        public Criteria andTypeIdNotBetween(Integer value1, Integer value2) {
            addCriterion("type_id not between", value1, value2, "typeId");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Integer value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Integer value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Integer value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Integer value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Integer> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Integer> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Integer value1, Integer value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}